<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
    <style type="text/css">
        body {
            background-color: #f2f2f2;
        }
        .container {
            width: 400px;
            margin: auto;
            margin-top: 100px;
            border: 1px solid #ccc;
            background-color: #fff;
            padding: 20px;
            box-shadow: 3px 3px 5px #ccc;
        }
        h1 {
            text-align: center;
        }
        input[type="text"], input[type="password"],
        button[type="submit"] {
            display: block;
            width: 100%;
            padding: 5px;
            margin-bottom: 10px;
            border-radius: 3px;
            border: 1px solid #ccc;
            font-size: 16px;
        }
        button[type="submit"] {
            background-color: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
        }
        button#register-button {
            background-color: white;
            color: black;
            border: none;
            cursor: pointer;
        }
        button[type="submit"]:hover, button#register-button:hover {
            background-color: #3e8e41;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>用户登录</h1>
    <form action="#" method="post">
        <label for="username">用户名：</label>
        <input type="text" id="username" name="username" placeholder="请输入用户名">

        <label for="password">密码：</label>
        <input type="password" id="password" name="password" placeholder="请输入密码">

        <button type="submit">登录</button>
        <br>
        <button id="register-button" type="button" onclick="window.location.href='regist.html';">注册</button>
    </form>
</div>
</body>
</html>